﻿ 

	
<!DOCTYPE html>  
<html>  
<head>  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
    <meta name="keywords" content="人才简历">  
    <meta name="description" content="人才简历">  
    <title>人才简历管理</title>  
    
    <%@ include file="/WEB-INF/inc/default.jsp"%>
    <jsp:include page="/WEB-INF/inc/dic.jsp"/>

</head>  
<body>  
    
      
    <table id="dg" title="人才简历管理" style="width:1100px;height:250px"  
            url="/talent/cv/list.do"  
            toolbar="#toolbar" pagination="true"  
            rownumbers="true" fitColumns="true" loadMsg="正在查询,请稍候..." singleSelect="false">  

    </table>  
    <div id="toolbar">  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="add()">新增</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="edit()">修改</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="deletes()">删除</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="find()">查询</a>
    </div>  
    <!-- edit form窗体（开始） -->  
    <div id="dlg" class="easyui-dialog" style="width:600px;height:280px;padding:10px 20px"  
            closed="true" buttons="#dlg-buttons">  
        <form id="fm" method="post" novalidate>  
        	  	  	 <input type="hidden" name="id" > 
	        		     <div class="fitem">  
                     <label style="width:100px">姓名<font color="red">*</font>:</label>                                            
                     <input name="cvName" class="easyui-box easyui-validatebox"  required="true">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">英文名:</label>                                            
                     <input name="cvNameEn" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">姓名来源线人:</label>                                            
                     <input name="nameInformer" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">姓名来源时间:</label>                       
                     <input name="nameDt" data-options="formatter:formateDate"  class="easyui-datebox">                       
                   </div>  	        		     
        	  	   	 <div class="fitem">  
                     <label style="width:100px">性别<font color="red">*</font>:</label>  
                     <input class="easyui-combobox"  required="true" name="sex" style="width:200px;"  data-options="data:__getConstantCategory('SEX'),valueField:'code', textField:'value', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div>  	        	  	   	
	        		     <div class="fitem">  
                     <label style="width:100px">出生日期:</label>                       
                     <input name="birthday" data-options="formatter:formateDate"  class="easyui-datebox">                       
                   </div>  	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">手机:</label>                                            
                     <input name="mobile" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">电话:</label>                                            
                     <input name="tel" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">msn/qq:</label>                                            
                     <input name="im" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">邮件:</label>                                            
                     <input name="email" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">现任职公司:</label>                                            
                     <input name="company" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">现任职部门:</label>                                            
                     <input name="dept" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">现任职职位:</label>                                            
                     <input name="title" class="easyui-box">                       
                   </div> 
        	  	   	 <div class="fitem">  
                     <label style="width:100px">行业:</label>  
                     <input class="easyui-combobox" " name="industry" style="width:200px;"  data-options="data:__getConstantCategory('MeetingRoomType'),valueField:'code', textField:'value', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div>  	        	  	   	
        	  	   	 <div class="fitem">  
                     <label style="width:100px">职能:</label>  
                     <input class="easyui-combobox" " name="function" style="width:200px;"  data-options="data:__getCategory('JOB'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div>  	        	  	   	
        	  	   	 <div class="fitem">  
                     <label style="width:100px">职级：从字典选择:</label>  
                     <input class="easyui-combobox" " name="level" style="width:200px;"  data-options="data:__getCategory('JOBLEVEL'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div>  	        	  	   	
        	  	   	 <div class="fitem">  
                     <label style="width:100px">婚姻状况:</label>  
                     <input class="easyui-combobox" " name="married" style="width:200px;"  data-options="data:__getCategory('MARRIED'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div>  	        	  	   	
        	  	   	 <div class="fitem">  
                     <label style="width:100px">户口所在地:</label>  
                     <input class="easyui-combobox" " name="registerLocation" style="width:200px;"  data-options="data:__getCategory('LOCATION'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div>  	        	  	   	
	        		     <div class="fitem">  
                     <label style="width:100px">详细家庭地址:</label>                                            
                     <input name="address" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">邮编:</label>                                            
                     <input name="postCode" class="easyui-box">                       
                   </div> 
        	  	   	 <div class="fitem">  
                     <label style="width:100px">学历:</label>  
                     <input class="easyui-combobox" " name="degree" style="width:200px;"  data-options="data:__getCategory('DEGREE'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div>  	        	  	   	
	        		     <div class="fitem">  
                     <label style="width:100px">工作年限:</label>                       
                     <input name="workYear" class="easyui-numberbox">                       
                   </div>	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">家庭背景:</label>                                            
                     <input name="homeBack" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">个人爱好英文描述:</label>                                            
                     <input name="interestEn" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">个人爱好:</label>                                            
                     <input name="interest" class="easyui-box">                       
                   </div> 
        	  	   	 <div class="fitem">  
                     <label style="width:100px">期望工作地点:</label>  
                     <input class="easyui-combobox" " name="expectLocation" style="width:200px;"  data-options="data:__getCategory('LOCATION'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div>  	        	  	   	
	        		     <div class="fitem">  
                     <label style="width:100px">简历线人:</label>                                            
                     <input name="resumeInformer" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">简历录入时间:</label>                       
                     <input name="resumeDt" data-options="formatter:formateDate"  class="easyui-datebox">                       
                   </div>  	        		     
        	  	   	 <div class="fitem">  
                     <label style="width:100px">人才类型:</label>  
                     <input class="easyui-combobox" " name="cvType" style="width:200px;"  data-options="data:__getCategory('CVTYPE'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div>  	        	  	   	
	        		     <div class="fitem">  
                     <label style="width:100px">简历状态:</label>                                            
                     <input name="cvStatus" class="easyui-box">                       
                   </div> 
        	  	   	 <div class="fitem">  
                     <label style="width:100px">简历来源:</label>  
                     <input class="easyui-combobox" " name="cvFrom" style="width:200px;"  data-options="data:__getConstantCategory('CvFrom'),valueField:'code', textField:'value', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div>  	        	  	   	
	        		     <div class="fitem">  
                     <label style="width:100px">基本信息提供者:</label>                                            
                     <input name="baseCreator" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">创建人:</label>                                            
                     <input name="creator" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">创建时间:</label>                       
                     <input name="createDt" data-options="formatter:formateDate"  class="easyui-datebox">                       
                   </div>  	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">修改人:</label>                                            
                     <input name="modifier" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">修改时间:</label>                       
                     <input name="modifiedDt" data-options="formatter:formateDate"  class="easyui-datebox">                       
                   </div>  	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">homeBackEn:</label>                                            
                     <input name="homeBackEn" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">照片:</label>                                            
                     <input name="logo" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">曾任公司:</label>                                            
                     <input name="oldcompany" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">当前住址:</label>                                            
                     <input name="currentAddress" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">现任公司id:</label>                       
                     <input name="companyId" class="easyui-numberbox">                       
                   </div>	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">简历录入人:</label>                                            
                     <input name="resumeCreator" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">曾任公司id:</label>                       
                     <input name="oldcompanyId" class="easyui-numberbox">                       
                   </div>	        		     
        	  	   	 <div class="fitem">  
                     <label style="width:100px">简历标志:</label>  
                     <input class="easyui-combobox" " name="cvTag" style="width:200px;"  data-options="data:__getCategory('CVTAG'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div>  	        	  	   	
        	  	   	 <div class="fitem">  
                     <label style="width:100px">外语水平:</label>  
                     <input class="easyui-combobox" " name="cvFlLevel" style="width:200px;"  data-options="data:__getConstantCategory('CvFLLevel'),valueField:'code', textField:'value', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div>  	        	  	   	
        	  	   	 <div class="fitem">  
                     <label style="width:100px">国籍:</label>  
                     <input class="easyui-combobox" " name="nationality" style="width:200px;"  data-options="data:__getCategory('NATIONALITY'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div>  	        	  	   	
	        		     <div class="fitem">  
                     <label style="width:100px">position:</label>                                            
                     <input name="position" class="easyui-box">                       
                   </div> 
        	  	   	 <div class="fitem">  
                     <label style="width:100px">完整度:</label>  
                     <input class="easyui-combobox" " name="integrity" style="width:200px;"  data-options="data:__getConstantCategory('CvIntegrity'),valueField:'code', textField:'value', multiple:false,panelHeight:'auto',mode:'remote' ">
                   </div>  	        	  	   	
	        		     <div class="fitem">  
                     <label style="width:100px">删除标志:</label>                       
                     <input name="isDelete" class="easyui-numberbox">                       
                   </div>	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">删除时间:</label>                       
                     <input name="deleteDt" data-options="formatter:formateDate"  class="easyui-datebox">                       
                   </div>  	        		     
        </form>  
    </div>  
    <!-- edit form窗体（结束） -->  
    <!-- query form窗体(开始) -->  
    <div id="dlg_query" class="easyui-dialog" style="width:400px;height:280px;padding:10px 20px"  
            closed="true" buttons="#dlg-buttons-query">  
        <div class="ftitle">人才简历</div>  
        <form id="fm_query" method="post" novalidate>  
            
              
	        		     <div class="fitem">  
                     <label style="width:100px">姓名:</label>                                            
                     <input name="cvName" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">英文名:</label>                                            
                     <input name="cvNameEn" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">姓名来源线人:</label>                                            
                     <input name="nameInformer" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">姓名来源时间:</label>                       
                     <input name="nameDt" data-options="formatter:formateDate" class="easyui-datebox">                         	
                   </div>  	        		     
        	  	   	 <div class="fitem">  
                     <label style="width:100px">性别:</label>                                            
                     
                     
                     <input class="easyui-combobox" name="sex" style="width:200px;"  data-options="data:__getConstantCategory('SEX'),valueField:'code', textField:'value', multiple:false,panelHeight:'auto',mode:'remote' ">
                     
                   </div>      	
	        		     <div class="fitem">  
                     <label style="width:100px">出生日期:</label>                       
                     <input name="birthday" data-options="formatter:formateDate" class="easyui-datebox">                         	
                   </div>  	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">手机:</label>                                            
                     <input name="mobile" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">电话:</label>                                            
                     <input name="tel" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">msn/qq:</label>                                            
                     <input name="im" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">邮件:</label>                                            
                     <input name="email" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">现任职公司:</label>                                            
                     <input name="company" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">现任职部门:</label>                                            
                     <input name="dept" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">现任职职位:</label>                                            
                     <input name="title" class="easyui-box">                       
                   </div> 
        	  	   	 <div class="fitem">  
                     <label style="width:100px">行业:</label>                                            
                     
                     
                     <input class="easyui-combobox" name="industry" style="width:200px;"  data-options="data:__getConstantCategory('MeetingRoomType'),valueField:'code', textField:'value', multiple:false,panelHeight:'auto',mode:'remote' ">
                     
                   </div>      	
        	  	   	 <div class="fitem">  
                     <label style="width:100px">职能:</label>                                            
                     
                     
                     <input class="easyui-combobox" name="function" style="width:200px;"  data-options="data:__getCategory('JOB'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                     
                   </div>      	
        	  	   	 <div class="fitem">  
                     <label style="width:100px">职级：从字典选择:</label>                                            
                     
                     
                     <input class="easyui-combobox" name="level" style="width:200px;"  data-options="data:__getCategory('JOBLEVEL'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                     
                   </div>      	
        	  	   	 <div class="fitem">  
                     <label style="width:100px">婚姻状况:</label>                                            
                     
                     
                     <input class="easyui-combobox" name="married" style="width:200px;"  data-options="data:__getCategory('MARRIED'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                     
                   </div>      	
        	  	   	 <div class="fitem">  
                     <label style="width:100px">户口所在地:</label>                                            
                     
                     
                     <input class="easyui-combobox" name="registerLocation" style="width:200px;"  data-options="data:__getCategory('LOCATION'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                     
                   </div>      	
	        		     <div class="fitem">  
                     <label style="width:100px">详细家庭地址:</label>                                            
                     <input name="address" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">邮编:</label>                                            
                     <input name="postCode" class="easyui-box">                       
                   </div> 
        	  	   	 <div class="fitem">  
                     <label style="width:100px">学历:</label>                                            
                     
                     
                     <input class="easyui-combobox" name="degree" style="width:200px;"  data-options="data:__getCategory('DEGREE'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                     
                   </div>      	
	        		     <div class="fitem">  
                     <label style="width:100px">工作年限:</label>                       
                     <input name="workYear" class="easyui-numberbox">                       
                   </div>	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">家庭背景:</label>                                            
                     <input name="homeBack" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">个人爱好英文描述:</label>                                            
                     <input name="interestEn" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">个人爱好:</label>                                            
                     <input name="interest" class="easyui-box">                       
                   </div> 
        	  	   	 <div class="fitem">  
                     <label style="width:100px">期望工作地点:</label>                                            
                     
                     
                     <input class="easyui-combobox" name="expectLocation" style="width:200px;"  data-options="data:__getCategory('LOCATION'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                     
                   </div>      	
	        		     <div class="fitem">  
                     <label style="width:100px">简历线人:</label>                                            
                     <input name="resumeInformer" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">简历录入时间:</label>                       
                     <input name="resumeDt" data-options="formatter:formateDate" class="easyui-datebox">                         	
                   </div>  	        		     
        	  	   	 <div class="fitem">  
                     <label style="width:100px">人才类型:</label>                                            
                     
                     
                     <input class="easyui-combobox" name="cvType" style="width:200px;"  data-options="data:__getCategory('CVTYPE'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                     
                   </div>      	
	        		     <div class="fitem">  
                     <label style="width:100px">简历状态:</label>                                            
                     <input name="cvStatus" class="easyui-box">                       
                   </div> 
        	  	   	 <div class="fitem">  
                     <label style="width:100px">简历来源:</label>                                            
                     
                     
                     <input class="easyui-combobox" name="cvFrom" style="width:200px;"  data-options="data:__getConstantCategory('CvFrom'),valueField:'code', textField:'value', multiple:false,panelHeight:'auto',mode:'remote' ">
                     
                   </div>      	
	        		     <div class="fitem">  
                     <label style="width:100px">基本信息提供者:</label>                                            
                     <input name="baseCreator" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">创建人:</label>                                            
                     <input name="creator" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">创建时间:</label>                       
                     <input name="createDt" data-options="formatter:formateDate" class="easyui-datebox">                         	
                   </div>  	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">修改人:</label>                                            
                     <input name="modifier" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">修改时间:</label>                       
                     <input name="modifiedDt" data-options="formatter:formateDate" class="easyui-datebox">                         	
                   </div>  	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">homeBackEn:</label>                                            
                     <input name="homeBackEn" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">照片:</label>                                            
                     <input name="logo" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">曾任公司:</label>                                            
                     <input name="oldcompany" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">当前住址:</label>                                            
                     <input name="currentAddress" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">现任公司id:</label>                       
                     <input name="companyId" class="easyui-numberbox">                       
                   </div>	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">简历录入人:</label>                                            
                     <input name="resumeCreator" class="easyui-box">                       
                   </div> 
	        		     <div class="fitem">  
                     <label style="width:100px">曾任公司id:</label>                       
                     <input name="oldcompanyId" class="easyui-numberbox">                       
                   </div>	        		     
        	  	   	 <div class="fitem">  
                     <label style="width:100px">简历标志:</label>                                            
                     
                     
                     <input class="easyui-combobox" name="cvTag" style="width:200px;"  data-options="data:__getCategory('CVTAG'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                     
                   </div>      	
        	  	   	 <div class="fitem">  
                     <label style="width:100px">外语水平:</label>                                            
                     
                     
                     <input class="easyui-combobox" name="cvFlLevel" style="width:200px;"  data-options="data:__getConstantCategory('CvFLLevel'),valueField:'code', textField:'value', multiple:false,panelHeight:'auto',mode:'remote' ">
                     
                   </div>      	
        	  	   	 <div class="fitem">  
                     <label style="width:100px">国籍:</label>                                            
                     
                     
                     <input class="easyui-combobox" name="nationality" style="width:200px;"  data-options="data:__getCategory('NATIONALITY'),valueField:'id', textField:'codeNameCn', multiple:false,panelHeight:'auto',mode:'remote' ">
                     
                   </div>      	
	        		     <div class="fitem">  
                     <label style="width:100px">position:</label>                                            
                     <input name="position" class="easyui-box">                       
                   </div> 
        	  	   	 <div class="fitem">  
                     <label style="width:100px">完整度:</label>                                            
                     
                     
                     <input class="easyui-combobox" name="integrity" style="width:200px;"  data-options="data:__getConstantCategory('CvIntegrity'),valueField:'code', textField:'value', multiple:false,panelHeight:'auto',mode:'remote' ">
                     
                   </div>      	
	        		     <div class="fitem">  
                     <label style="width:100px">删除标志:</label>                       
                     <input name="isDelete" class="easyui-numberbox">                       
                   </div>	        		     
	        		     <div class="fitem">  
                     <label style="width:100px">删除时间:</label>                       
                     <input name="deleteDt" data-options="formatter:formateDate" class="easyui-datebox">                         	
                   </div>  	        		     
              
              
        </form>  
    </div> 
    <!-- query form窗体(结束) -->  
    <div id="dlg-buttons">  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="save()">Save</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">关闭</a>  
    </div>  
    <div id="dlg-buttons-query">  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="query()">确定</a>  
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg_query').dialog('close')">关闭</a>  
    </div>  
    <script type="text/javascript">  
        var url;  
        function add(){         	 
            $('#dlg').dialog('open').dialog('setTitle','新增人才简历');  
            $('#fm').form('clear');  
            url = '/talent/cv/save.do';  
        }  
        function edit(){  
            //var row = $('#dg').datagrid('getSelected');  
            var rows = $('#dg').datagrid('getSelections');
            if (!rows||rows.length==0){
            	 $.messager.alert('提示','请选择要修改的行','info');
            	 return;
            }
            if (!rows||rows.length>1){
            	 $.messager.alert('提示','不能选择多行','info');
            	 return;
            }
            if (rows){  
                $('#dlg').dialog('open').dialog('setTitle','修改人才简历');  
                //$('#fm').form('load',rows[0]);  
                $('#fm').form('load','/talent/cv/get.do?id='+rows[0].id);  
                url = '/talent/cv/update.do';
            }  
        }  
        function save(){          	   
        	  if (!$('#fm').form('validate')) return; 
            $('#fm').form('submit',{  
                url: url,  
                onSubmit: function(){  
                    return $(this).form('validate');  
                },  
                success: function(result){  
                    var result = eval('('+result+')');                      
                    if (result.success == true){  
                        $.messager.alert('信息',result.msg,'info');  
                        $('#dlg').dialog('close');      // close the dialog  
                        $('#dg').datagrid('reload');    // reload the user data  
                    } else {  
                        $.messager.alert('错误',result.msg,'error');
                    }  
                }  
            });  
        }  
        function deletes(){  
            var row = $('#dg').datagrid('getSelected');  
            
            var rows = $('#dg').datagrid('getSelections');  

            if (!rows||rows.length==0){
            	 $.messager.alert('提示','请选择要删除的行','info');
            	 return;
            }
            if (rows){  
                $.messager.confirm('重要提示','确定要删除?',function(r){  
                    if (r){  
                        $.post('/talent/cv/delete.do',{ids:getRecordArray(rows,'id').join(',')},function(result){  
                            if (result.success){  
                                $('#dg').datagrid('reload');    // reload the user data  
                            } else {  
                                 
                                $.messager.alert('错误',result.errorMsg,'error'); 
                            }  
                        },'json');  
                    }  
                });  
            }  
        }  
        function find(){  
              
                $('#dlg_query').dialog('open').dialog('setTitle','查询');  
                
                url = '/talent/cv/list.do';  
              
        } 
        	
        function query(){  
                
                //var aa=$('#fm_query').formSerialize();
                var formdata=$('#fm_query').formToArray();
                //var dd= JSON.stringify(cc); 
                
                if (!$('#fm_query').form('validate')) return; 
                $('#dg').datagrid({
	                  queryParams: array2json(formdata)
                });
               $('#dlg_query').dialog('close');
              
        }
        
        //生成grid的字段,需要字典的自动转换
        $('#dg').datagrid({
        	   columns:[[
        	   	
        	   	   {field:'cvName',title:'姓名', width:100}
        	   	   ,{field:'cvNameEn',title:'英文名', width:100}
        	   	   ,{field:'nameInformer',title:'姓名来源线人', width:100}
        	   	   ,{field:'nameDt',title:'姓名来源时间', width:100}
        	   	   ,{field:'sex',title:'性别', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getConstantCategoryCodeValue('SEX', value);
        	   		      }
        	   	     }
        	   	   ,{field:'birthday',title:'出生日期', width:100}
        	   	   ,{field:'mobile',title:'手机', width:100}
        	   	   ,{field:'tel',title:'电话', width:100}
        	   	   ,{field:'im',title:'msn/qq', width:100}
        	   	   ,{field:'email',title:'邮件', width:100}
        	   	   ,{field:'company',title:'现任职公司', width:100}
        	   	   ,{field:'dept',title:'现任职部门', width:100}
        	   	   ,{field:'title',title:'现任职职位', width:100}
        	   	   ,{field:'industry',title:'行业', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getConstantCategoryCodeValue('MeetingRoomType', value);
        	   		      }
        	   	     }
        	   	   ,{field:'function',title:'职能', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategroyCodeValue('JOB', value);
        	   		      }
        	   	     }
        	   	   ,{field:'level',title:'职级：从字典选择', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategroyCodeValue('JOBLEVEL', value);
        	   		      }
        	   	     }
        	   	   ,{field:'married',title:'婚姻状况', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategroyCodeValue('MARRIED', value);
        	   		      }
        	   	     }
        	   	   ,{field:'registerLocation',title:'户口所在地', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategroyCodeValue('LOCATION', value);
        	   		      }
        	   	     }
        	   	   ,{field:'address',title:'详细家庭地址', width:100}
        	   	   ,{field:'postCode',title:'邮编', width:100}
        	   	   ,{field:'degree',title:'学历', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategroyCodeValue('DEGREE', value);
        	   		      }
        	   	     }
        	   	   ,{field:'workYear',title:'工作年限', width:100}
        	   	   ,{field:'homeBack',title:'家庭背景', width:100}
        	   	   ,{field:'interestEn',title:'个人爱好英文描述', width:100}
        	   	   ,{field:'interest',title:'个人爱好', width:100}
        	   	   ,{field:'expectLocation',title:'期望工作地点', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategroyCodeValue('LOCATION', value);
        	   		      }
        	   	     }
        	   	   ,{field:'resumeInformer',title:'简历线人', width:100}
        	   	   ,{field:'resumeDt',title:'简历录入时间', width:100}
        	   	   ,{field:'cvType',title:'人才类型', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategroyCodeValue('CVTYPE', value);
        	   		      }
        	   	     }
        	   	   ,{field:'cvStatus',title:'简历状态', width:100}
        	   	   ,{field:'cvFrom',title:'简历来源', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getConstantCategoryCodeValue('CvFrom', value);
        	   		      }
        	   	     }
        	   	   ,{field:'baseCreator',title:'基本信息提供者', width:100}
        	   	   ,{field:'creator',title:'创建人', width:100}
        	   	   ,{field:'createDt',title:'创建时间', width:100}
        	   	   ,{field:'modifier',title:'修改人', width:100}
        	   	   ,{field:'modifiedDt',title:'修改时间', width:100}
        	   	   ,{field:'homeBackEn',title:'homeBackEn', width:100}
        	   	   ,{field:'logo',title:'照片', width:100}
        	   	   ,{field:'oldcompany',title:'曾任公司', width:100}
        	   	   ,{field:'currentAddress',title:'当前住址', width:100}
        	   	   ,{field:'companyId',title:'现任公司id', width:100}
        	   	   ,{field:'resumeCreator',title:'简历录入人', width:100}
        	   	   ,{field:'oldcompanyId',title:'曾任公司id', width:100}
        	   	   ,{field:'cvTag',title:'简历标志', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategroyCodeValue('CVTAG', value);
        	   		      }
        	   	     }
        	   	   ,{field:'cvFlLevel',title:'外语水平', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getConstantCategoryCodeValue('CvFLLevel', value);
        	   		      }
        	   	     }
        	   	   ,{field:'nationality',title:'国籍', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getCategroyCodeValue('NATIONALITY', value);
        	   		      }
        	   	     }
        	   	   ,{field:'position',title:'position', width:100}
        	   	   ,{field:'integrity',title:'完整度', width:100,
        	   		      formatter: function(value,row,index){
        	   		      	return __getConstantCategoryCodeValue('CvIntegrity', value);
        	   		      }
        	   	     }
        	   	   ,{field:'isDelete',title:'删除标志', width:100}
        	   	   ,{field:'deleteDt',title:'删除时间', width:100}
        	   	
        	   	
        	   ]]
        	   ,onDblClickRow: function(rowIndex, rowData){
        	    	$('#dlg').dialog('open').dialog('setTitle','修改人才简历');                  
                $('#fm').form('load','/talent/cv/get.do?id='+rowData.id);  
                url = '/talent/cv/update.do';        	    	
        	    }
        }); 
        //完成-生成grid的字段
        
        
        
    </script>  
     
     

     
     
     
</body>  
</html>